<template>
  <div>
    <h1>评论表</h1>
    <textarea name="" id="" cols="20" rows="10" v-model="form.txt"></textarea>
    <button @click="post_tlack">确认评论</button>
  </div>
</template>

<script>
export default {
  name: "tlackM",
  data() {
    return {
      form: {'shoops': this.$route.query.id, 'users': localStorage.getItem('usersid')}
    }
  },
  methods: {
    post_tlack() {
      this.$axios.post('users/tlackMAPI/', this.form)
        .then(res => {
          if (res.data.code == 200) {
            alert('ok')
            this.form={}
          } else {
            alert('no')
          }
        })
    }
  }
}
</script>

<style scoped>

</style>
